package com.foreverwin.jzymes.report.task.mapper;

import com.foreverwin.jzymes.common.domain.NcData;
import com.foreverwin.jzymes.qc.check.domain.QcCheck;
import com.foreverwin.jzymes.qc.check.domain.QcCheckFaiFail;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Date;

public interface TaskReportMapper {

    /**
     * 目检、三次元任务报表
     *
     * @param site
     * @param resrce
     * @param startDate
     * @param endDate
     * @return
     *
     */
    public List<QcCheck> findQcCheckByReport(@Param("site")String site , @Param("resrce") String resrce ,@Param("startDate")Date startDate,@Param("endDate")Date endDate);


    /**
     * 目检、三次元不良项目
     *
     * @param site
     * @param operation
     * @param resrce
     * @param carrier
     * @return
     */
    public List<NcData> findtaskNcData(@Param("operation")String operation,@Param("site")String site , @Param("resrce") String resrce ,@Param("carrier")String carrier );

    /**
     * 目检、三次元不良项目
     *
     * @param createdDateTime
     * @return
     */
    public List<QcCheckFaiFail> findtaskFail(@Param("createdDateTime")Date createdDateTime);
}
